package us.feng.tinyspring.aop.framework;

import java.util.LinkedList;
import java.util.List;

import us.feng.tinyspring.aop.Advisor;
import us.feng.tinyspring.aop.TargetSource;

public class AdvisedSupport extends ProxyConfig implements Advised{
	private TargetSource targetSource;
	private List<Advisor> advisors=new LinkedList<>();
	@Override
	public Advisor[] getAdvisors() {
		return advisors.toArray(new Advisor[advisors.size()]);
	}
	@Override
	public TargetSource getTargetSource() {
		return targetSource;
	}
}
